﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DonetSpider.Db
{
    public class Title
    {

        public int Id { get; set; }
        public string Name { get; set; }
        public string StartUrl { get; set; }
        /// <summary>
        /// 爬虫类型
        /// </summary>
        public string SType { get; set; }
        public string ImageUrl { get; set; }
    }
    public class Items
    {
        public int Id { get; set; }
        public string PId { get; set; }
        public string Name { get; set; }
        public string DataMsg { get; set; }
        public string Url { get; set; }
        public string MUrl { get; set; }

    }
    public class ItemsDto: Items
    {
        public string PName { get; set; }
    }
    public interface IMovieDb
    {
        List<Title> SelectTitle();
        List<Title> SelectTitleById(string id);
        List<Title> SelectTitle(string name);
        List<Items> SelectItems(string id);
        ItemsDto SelectItem(string id);
        Items SelectLastItem();
        void WriteTitle(Title t);
        void WriteItems(List<Items> t);
        string Name { get; set; }
        string PId { get; set; }
    }
}
